package timetest;

import java.util.Calendar;

public class TimeTest {
	public static void main ( String[] args ) {
//		System.out.println(System.currentTimeMillis());
		
		Calendar c = Calendar.getInstance();
		c.setTimeInMillis(System.currentTimeMillis());
		System.out.println(c.get(Calendar.YEAR) + "-" + c.get(Calendar.MONTH) + "-" + c.get(Calendar.DAY_OF_MONTH) + " " + c.get(Calendar.HOUR) + ":" + c.get(Calendar.MINUTE));
	}
}
